package com.daiqile.mysupertab.base;

import android.app.Activity;
import android.app.ProgressDialog;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;

import butterknife.ButterKnife;

/**
 * Created by orgwcl on 2016/9/2.
 */
public abstract class BaseActivity extends AppCompatActivity {

    private ProgressDialog dialog;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(getLayoutId());
        ButterKnife.bind(bindActivity());

        init();

    }

    public abstract void init();

    public abstract int getLayoutId();

    public abstract Activity bindActivity();

    @Override
    protected void onDestroy() {
        super.onDestroy();
    }




}
